/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package temapersistens;

import DBLayer.DBSalesContainer;
import ModelLayer.Customer;
import ModelLayer.SalesOrder;
import java.util.ArrayList;

/**
 *
 * @author Moulde
 */
public class Main
{
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)
    {
        DBSalesContainer dbSales = new DBSalesContainer();
        ArrayList<SalesOrder> orders = dbSales.getOrders(2);

        for (SalesOrder order : orders)
        {
            System.out.println(order.getDeliveryStatus());
        }

//DBPersonContainer p = new DBPersonContainer();
//Person pe = new Person("Hans", "null", 9000, 988, "dk", "mail");
//p.createPerson(pe);


//        DBCustomerTypeContainer container = new DBCustomerTypeContainer();
//        CustomerType type = container.getCustomerType(1);
//
//        System.out.println(type.getType());
    }
}
